package com.sxbbc.common.core.entity.jz;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 系统协议表
 * </p>
 *
 * @author leehao
 * @since 2019-04-28
 */
@TableName("sys_agreement")
public class SysAgreement extends Model<SysAgreement> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "type", type = IdType.AUTO)
    private Integer type;

    /**
     * 协议标题
     */
    private String title;

    /**
     * 协议内容
     */
    private String content;

    private Date createtime;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    protected Serializable pkVal() {
        return this.type;
    }

    @Override
    public String toString() {
        return "SysAgreement{" +
        "type=" + type +
        ", title=" + title +
        ", content=" + content +
        ", createtime=" + createtime +
        "}";
    }
}
